package base_de_dados;

import java.util.Date;

public class Log {

	private String user;
	private Date connection_data;
	private Date disconnection_data;
	

	public Log(String user, Date connection_data, Date disconnection_data) {
		this.user = user;
		this.connection_data = connection_data;
		this.disconnection_data = disconnection_data;
	}

	@Override
	public String toString() {
		
		return String.format("************************************************\n" +
				"* User: %s                                   *" +
				"\n* Connected at: %s   *" +
				"\n* Disconnected at: %s*\n" +
				"************************************************", user, connection_data ,disconnection_data);
	}



}
